import request from '@/config/request'


export function upload(data) {
    return request({
        url: 'file/upload',
        method: 'post',
        contentType: 'multipart/form-data',
        data: data
    })
}

export function uploadHeadImg(data) {
    return request({
        url: 'file/uploadHeadImg',
        method: 'post',
        headers: {
            "Content-Type": "multipart/form-data"
        },
        data: data
    })
}
